Skip to content

[Feature] In-process diagnosers#2843

Merged
timcassell merged 20 commits intomasterfrom
in-process-diagnosers
Dec 3, 2025
Merged

[Feature] In-process diagnosers#2843
timcassell merged 20 commits intomasterfrom
in-process-diagnosers

Conversation

@timcassell
Copy link
Copy Markdown
Collaborator

@timcassell timcassell commented Oct 22, 2025

This comment was marked as resolved.

Comment thread src/BenchmarkDotNet/Diagnosers/IDiagnoser.cs Outdated
@timcassell
Copy link
Copy Markdown
Collaborator Author

It works nicely, but I'm not entirely sold on this design of diagnosers creating source code tied to C#. An alternative is serializing ctor data. I would love to use static interface members for this, but sadly they aren't supported on netstandard2.0. 😞 @AndreyAkinshin Any thoughts?

@AndreyAkinshin
Copy link
Copy Markdown
Member

@adamsitnik could you please take a look?

@timcassell
Copy link
Copy Markdown
Collaborator Author

I changed it so diagnosers return Type and serialized config instead of source code. I think source code generation should be left to the toolchains.

@timcassell timcassell force-pushed the in-process-diagnosers branch from ef14209 to eb27f66 Compare November 1, 2025 22:52
@timcassell
Copy link
Copy Markdown
Collaborator Author

@copilot Add tests for multiple in-process diagnosers with varying run modes.

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 5, 2025

@timcassell I've opened a new pull request, #2857, to work on those changes. Once the pull request is ready, I'll request review from you.

@timcassell timcassell marked this pull request as draft November 5, 2025 22:26
@timcassell timcassell marked this pull request as ready for review November 8, 2025 18:20
@timcassell

This comment was marked as outdated.

This comment was marked as outdated.

Make DisassemblyDiagnoser run in-process by default.
Revert x86 test workaround and add tests.
@timcassell timcassell force-pushed the in-process-diagnosers branch from ff20126 to 7dca372 Compare November 29, 2025 09:02
@timcassell timcassell merged commit 96d777d into master Dec 3, 2025
16 checks passed
@timcassell timcassell deleted the in-process-diagnosers branch December 3, 2025 01:48
@timcassell timcassell added this to the v0.15.9 milestone Dec 3, 2025
Comment thread src/BenchmarkDotNet/Running/BenchmarkRunnerClean.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

5 participants